package com.mrjy.common.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class OrderCodeUtil {
	private static SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS") ; 
	
	public static String getOrderCode(String prefix , Integer userId){
		StringBuffer buff = new StringBuffer() ;
		buff.append(prefix).append(userId).append(sdf.format(new Date()));
		return buff.toString() ;
	}
}
